package com.zzyq.pc.common.plugin.shiro.session;

import java.io.Serializable;
import java.util.Collection;

import org.apache.shiro.session.Session;
import org.springframework.stereotype.Component;

/**
 * 
 * <p>
 * 
 * @Title: ShiroSessionRepositoryImpl.java
 * @Description: 本地Session管理策略
 * @author: Sywd丶吴迪
 * @date: 2017年8月30日 上午10:38:44
 * @version V1.0
 *          <p>
 */
@Component
public class ShiroSessionRepositoryImpl implements IShiroSessionRepository {
    //暂时用不到。。。先空着
    @Override
    public void saveSession(Session session) {
        if (session == null || session.getId() == null) {
            throw new NullPointerException("session is empty");
        }
    }

    @Override
    public void deleteSession(Serializable sessionId) {

    }

    @Override
    public Session getSession(Serializable sessionId) {
        return null;
    }

    @Override
    public Collection<Session> getAllSessions() {
        return null;
    }

}
